package com.factory;

public class Main {
    public static void main(String[] args) {
        IFactory iFactory = new UndergraduateFactory();//new VolunteerFactory()
        LeiFeng student = iFactory.createLeiFeng();
        student.buyRice();
        student.sweep();
        student.wash();
    }
}
